//工艺设计

import http from '@/lib/http'





// 03_01_新建工艺版本 /process/version/precreat
export function creatVersion(params) {
    return http.postRequest(`/process/version/create`, params)
}


// 03_02_删除工艺版本  /process/version/delete
export function deleteVersion(params) {
    return http.getRequest(`/process/version/delete`, params)
}


// 03_03_修改工艺版本  /process/version/update
export function editVersion(params) {
    return http.postRequest(`/process/version/update`, params)
}


// 03_04_查询工艺版本 /process/version/select
export function getProcessDatebase(params) {
    return http.getRequest(`/process/version/select`, params)
}


// 03_05_获取工艺版本（单）
export function getVersion(params) {
    return http.getRequest(`/process/version/get`, params)
}


// 03_06_获取工艺版本（多）  /process/detail
export function getProcessDetail(params) {
    return http.getRequest(`/process/detail`, params)
}


// 03_07_工艺设计提交 /process/design
export function designProcess(params) {
    return http.postRequest(`/process/design`, params)
}


// 03_08_工艺审批 /process/audit
export function auditProcess(params) {
    return http.getRequest(`/process/audit`, params)
}


// 03-09 进入首页 / 首页查询  /process/index
export function getProcessIndex(params) {
    return http.getRequest(`/process/index`, params)
}


// 03_10_产品通知
export function getProcessNotice(params) {
    return http.getRequest(`/process/notice`, params)
}


// 03_11 返修处理查询  /process/rework
export function getReworkList(params) {
    return http.getRequest(`/process/rework`, params)
}



// 是否可以修改工艺路线
// 没有在产产品应用
export function canModifyProcessRoute(params) {
    return http.getRequest(`/process/route/canmodify`, params)
}





//03_12_获取预准备数据集   /process/predate
export function preData(params) {
    return http.getRequest(`/process/predate`, params)
}

//03_13 删除工序
export function deleteProcess(params) {
    return http.getRequest(`/process/delete`, params)
}